package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_logistics_channel")
public class LogisticsChannelDo extends Model<LogisticsChannelDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("tenant_id")
    private Long tenantId;

    /**
     * 物流商账号id
     */
    @TableField("account_id")
    private Long accountId;

    /**
     * 物流渠道代码
     */
    @TableField("channel_code")
    private String channelCode;

    /**
     * 物流渠道名称
     */
    @TableField("channel_name")
    private String channelName;

    /**
     * 承运商
     */
    @TableField("carrier")
    private String carrier;



    /**
     * 承运商服务代码
     */
    @TableField("carrier_code")
    private String carrierCode;

    @TableField("enable")
    private Integer enable;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    /**
     * 0不支持保险 1支持保险
     */
    @TableField("insurance_flag")
    private Integer insuranceFlag;

    /**
     * 平台面单 0不获取 1获取
     */
    @TableField("get_sheet_type")
    private Integer getSheetType;

    /**
     * 2不校验 3校验
     */
    @TableField("channel_type")
    private Integer channelType;

    /**
     * 签名服务 多个 , 隔开 DIRECT INDIRECT ADULT
     */
    @TableField("signature_type")
    private String signatureType;

    /**
     * 下单限制单位 cm in
     */
    @TableField("size_unit")
    private String sizeUnit;

    @TableField("customer_check_type")
    private int customerCheckType;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
